package com.tengju.bff.interfaces.covercharge.dto;

import com.tengju.bff.interfaces.covercharge.enums.OperateTypeEnum;
import com.tengju.bff.interfaces.covercharge.enums.ProfitTypeEnum;
import com.tengju.bff.interfaces.covercharge.enums.ServiceAccountTypeEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author liang_shi
 * @date 2020/8/3 15:48
 * @description 收益数据
 */
@Data
@Accessors(chain = true)
public class ProfitDetailDataDTO implements Serializable {

    /**
     * 代理id
     */
    @NotNull(message = "idCode不能为空")
    private Integer idCode;

    /**
     * 账户类型，对应账户类型表
     */
    @NotNull(message = "accountType不能为空")
    private ServiceAccountTypeEnum accountType;

    /**
     * 收益变更类型  结算+  退款-
     */
    @NotNull(message = "opType不能为空")
    private OperateTypeEnum opType;

    /**
     * 会员关联表id
     */
    @NotNull(message = "tableId不能为空")
    private Integer tableId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 退款id
     */
    private Long returnId;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 金额
     */
    @NotNull(message = "amount不能为空")
    private BigDecimal amount;

    /**
     * 收益支出类型
     */
    private ProfitTypeEnum profitTypeEnum;

    /**
     * 收益支出描述
     */
    private String des;


}
